﻿var mCaseFileListView_Query = {};

$(function () {
    try
    {

        mCaseFileListView_Query.BillType = 1;
        mCaseFileListView_Query.BillId = 3;

        $('#caseFileDataGrid').datagrid({
            url: '/Case/LoadCaseFileSimpleList',
            fitColumns: true,
            rownumbers: true,
            resizable: true,
            pagination: true,
            pageNumber: 1,
            pageSize: 20,
            nowrap: false,
            idField: 'Id',
            toolbar: '#caseFileToolbar',
            queryParams: { 'caseFileQuery': JSON.stringify(mCaseFileListView_Query) },
            singleSelect: true,
            columns: [[
                   { title: 'Id', field: 'Id', align: 'left', width: 10, hidden: true },
                   { title: '案件编号', field: 'BillNumber', align: 'left', width: 50 },
                   { title: '描述', field: 'Description', align: 'left', width: 50 },
                   { title: '上传日期', field: 'UploadTime', align: 'left', width: 200 },
                   { title: '上传人', field: 'UploaderName', align: 'left', width: 100 },
                   { title: '文件大小', field: 'Size', align: 'left', width: 120 }
            ]]
        });

    } catch (ex) {
        alert(ex);
    }
});

